import request from '@/utils/request'
// 获取文章分类数据
export const getCategoryAPI = () => {
  return request.get('/my/cate/list')
}
// 添加文章分类
export const addCategoryAPI = obj => {
  return request.post('/my/cate/add', obj)
}

// 删除文章分类
export const deleteCategoryAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}

// 修改文章分类
// 修改分类
export const updateCategoryAPI = obj => {
  return request.put('/my/cate/info', obj)
}
